package com.bltec.emergency.mapper;

import com.bltec.emergency.model.RolePermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface RolePermissionMapper {
    @Insert("insert into sys_role_permission (role_id,permission_id) values(#{roleId},#{permissionId})")
    boolean save(RolePermission rolePermission);
    @Delete("delete from sys_role_permission where role_id=#{roleId}")
    boolean deleteByRoleId(Long roleId);
}
